projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6904ba
)
GtkCssStyleChange: Only print values that really changed
author
Timm Bäder
<mail@baedert.org>
Thu, 12 Oct 2017 09:46:25 +0000
(11:46 +0200)
committer
Timm Bäder
<mail@baedert.org>
Thu, 12 Oct 2017 13:42:03 +0000
(15:42 +0200)
gtk/gtkcssstylechange.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssstylechange.c
b/gtk/gtkcssstylechange.c
index 00a68021448e72f8b5083836ef90a6b6ddce9d47..e538a82d3f95983285fbd8ac1db5c28c3315d62d 100644
(file)
--- a/
gtk/gtkcssstylechange.c
+++ b/
gtk/gtkcssstylechange.c
@@
-126,6
+126,10
@@
gtk_css_style_change_print (GtkCssStyleChange *change,
GtkCssValue *value;
const char *name;
+ if (_gtk_css_value_equal (gtk_css_style_get_value (change->old_style, i),
+ gtk_css_style_get_value (change->new_style, i)))
+ continue;
+
prop = _gtk_css_style_property_lookup_by_id (i);
name = _gtk_style_property_get_name (GTK_STYLE_PROPERTY (prop));